<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>     

<title>商户详情</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="<s:url value="/css/a.css"/>" type="text/css"
	rel="stylesheet" />
<link href="<s:url value="/css/index.css"/>" type="text/css"
	rel="stylesheet" />
<link href="<s:url value="/css/divTuo.css"/>" type="text/css"
	rel="stylesheet" />

<script type="text/javascript"
	src="<s:url value="/js/jquery-1.3.2.js" />"></script>
	<script type="text/javascript"
	src="<s:url value="/js/jquery.blockUI.js" />"></script>
	
<script type="text/javascript"
	src="<s:url value="/js/jquery.validate.min.js" />"></script>
<script type="text/javascript"
	src="<s:url value="/js/pwms.validate.js?v13" />"></script>
<script type="text/javascript"
	src="<s:url value="/js/divTuo.js" />"></script>
<style type="text/css">
.fieldError {
	color: red;
	text-align: left;
}

.error {
	float: none;
	color: red;
	padding-left: .5em;
	vertical-align: top;
}

table th {
	font-weight: bolder;
	text-align: left;
	background-color: #5599FF;
}
</style>
<script type="text/javascript" language="javaScript">

	$(document).ready(function() {
		 $(":input[name=athorityValue]").each(function(){
		 	var aVal=$(this).val();
		 	
		 	$(":checkbox[name=transTypes]").each(function(){
		 		var moduleval=$(this).val();
		 		if(aVal==moduleval){
		 			$(this).attr('checked',true);
		 			
		 		}
		 	});
	 	
	 	});
		
		
	}); 
	
	function checkImgs(str){
		
		  $(document).ready(function () {
     var ScreenWidth = screen.availWidth ;
     var ScreenHeight = screen.availHeight; 
     var StartX = (ScreenWidth - innerWidth) / 2 ;
     var StartY = (ScreenHeight - innerHeight) / 2 
     
     var url =  "<%=basePath%>mer/openImg.ct?imgUrl=" +str;
                
     window.open(url, '图片预览', 'left='+ StartX + ', top='+ StartY + ', Width=' + innerWidth +', height=' + innerHeight + ', resizable=no, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no');      
      
      });
	}
	function closeDiv(){
		 $(document).ready(function () {
		      $.unblockUI();
        });
	}	
	function goBack(){
		window.history.go(-1);
	}
</script>

</head>

<body>
	
		<div class="subpage" >
			<s:form id="merinfoForm" action="/mer/checkMerThree.ct" method="post"  theme="simple" enctype="multipart/form-data">  
				<div class="user_title">
					<h2 class="headline-inquires">POS收单运营管理平台<br />
	    		 <span class="sub-title">

	    		 </span></h2>
				</div>
				 <s:iterator value="#request.valueList" status="stat" id="bean">
    				<s:hidden name="athorityValue" value="%{#bean}"></s:hidden>
   				</s:iterator>
   	
				<table width="100%" border="1" cellspacing="0" class="table">
					<tr>
						<td colspan="6" align="center">
							<input type="hidden" name="merinfo.mid"   value="<s:property value="merinfoDetail.mid"/>"/>
							<input type="hidden" name="merinfo.tel"   value="<s:property value="merinfoDetail.tel"/>"/>
							<h2 class="headline-inquires">
								特约商户详细信息 <br />
								<span class="sub-title"></span>
							</h2>
						</td>
					</tr>
					
					
					<tr>
						<th colspan="6">商户基本信息</th>
					</tr>
					<tr>
						<td style="width:10%;text-align: right;">商户类型：</td>
						
						<td style="width:20%"> 
							<s:if test="merinfoDetail.merKind==\"01\"">企业单位</s:if>
							<s:if test="merinfoDetail.merKind==\"02\"">个体工商户</s:if>
						 </td>
						
						<td style="width:10%;text-align: right;">所属地区：</td>
						<td style="width:20%"> <s:property value="merinfoDetail.areaName"/> </td> 
						 
						<s:if test="#session.session_merchant.roleType==\"03\"||#session.session_merchant.roleType==\"15\" || #session.session_merchant.roleType==\"16\"">
						 <td style="width:10%;text-align: right;"></td>
						 <td style="width:20%"></td>
						</s:if> 
						<s:else>
						   <td style="width:10%;text-align: right;">所属机构：</td>
						   <td style="width:20%"><s:property value="merinfoDetail.orgName"/>  </td>
						</s:else>
						
					</tr>
					<tr>
						<td style="text-align: right;">申请终端数量：</td>
						<td> <s:property value="merinfoDetail.terNums"/> </td>		
						<td style="text-align: right;">mcc码：</td>
						<td>
							【<s:property value="merinfoDetail.mcc"/>】<s:property value="merinfoDetail.mccName"/>
						 </td>
						<td style="text-align: right;">商户号：</td>
						
						<td><s:property value="merinfoDetail.mid"/></td>
					</tr>
					<tr>
						
					</tr>
					<tr>
						<td style="text-align: right;">商户名称：</td>
						
						<td><s:property value="merinfoDetail.merName"/> </td>
						<td style="text-align: right;">营业名称：</td>
						
						<td><s:property value="merinfoDetail.merBrName"/> </td>
						<td style="text-align: right;">支付联行号：</td>
						
						<td><s:property value="merinfoDetail.settBankId"/> </td>
					</tr>
					<tr>
						<td style="text-align: right;">注册地址：</td>
						<td colspan="5"><s:property value="merinfoDetail.addr"/> </td>
					</tr>
					<tr>
						<td style="text-align: right;">营业起始时间：</td>
						
						<td><s:property value="merinfoDetail.engName"/> </td>
						<td style="text-align: right;">营业终止时间：</td>
						
						<td><s:property value="merinfoDetail.engBrName"/> </td>
						
						 <td style="text-align: right;">结算周期：</td>
						
						<td>
							<s:iterator value="#request.cycList" var="cy">
								<s:if test="#cy.cycleId==merinfoDetail.cycleId">
									<s:property value="#cy.cycleName"/>
								</s:if>
							</s:iterator>
						 </td>
					</tr>
					
					
					<tr>
						
						<td style="text-align: right;">结算银行：</td>
						
						<td><s:property value="merinfoDetail.accBank"/></td>
						<td style="text-align: right;">结算账号：</td>
						
						<td>
							<s:property value="merinfoDetail.accNo"/>
						 </td>
						 <td style="text-align: right;">账户名：</td>
						
						<td>
							<s:property value="merinfoDetail.contact"/>
						 </td>
					</tr>
					<tr>
						<td style="text-align: right;">扣率类型：</td>
						
						<td> 
							<s:if test="merinfoDetail.commMode==\"1\"">点数</s:if>
							<s:if test="merinfoDetail.commMode==\"2\"">封顶（固定每笔）</s:if>
							<s:if test="merinfoDetail.commMode==\"3\"">封顶</s:if>
						 </td>
						<td style="text-align: right;">扣率：</td>
						
						<td><s:property value="merinfoDetail.commRate"/> </td>
						<td style="text-align: right;">封顶手续费：</td>
						
						<td><s:property value="merinfoDetail.commAmt"/>元  </td>
					</tr>
					
					
					<tr>
						<td style="text-align: right;">法人姓名：</td>
						
						<td><s:property value="merinfoDetail.perName"/>  </td>
						<td style="text-align: right;">法人电话 ：</td>
						
						<td><s:property value="merinfoDetail.perPhone"/>  </td>
						
						<td style="text-align: right;">业务联系人电话：</td>
						
						<td ><s:property value="merinfoDetail.tel"/> </td>
					</tr>
					<tr>
						<td style="text-align: right;">法人证件类型：</td>
						
						<td>
							
							<s:if test="merinfoDetail.cardType ==\"01\"">身份证</s:if>
						</td>
						<td style="text-align: right;">法人证件号码 ：</td>
						<td ><s:property value="merinfoDetail.cardNo"/>  </td>
						<td style="text-align: right;">邮编：</td>
						
						<td><s:property value="merinfoDetail.zipCode"/> </td>
						
					</tr>
					<tr>
						<td style="text-align: right;">开户许可证：</td>
						
						<td><s:property value="merinfoDetail.bankLicense"/> </td>
						<td style="text-align: right;">营业执照号 ：</td>
						
						<td><s:property value="merinfoDetail.busLicense"/>  </td>
						<td style="text-align: right;">税务登记证：</td>
						
						<td><s:property value="merinfoDetail.taxRegCer"/> </td>
					</tr>
					
					<tr>
						<td style="text-align: right;">组织机构代码 ：</td>
						
						<td><s:property value="merinfoDetail.organizationCode"/>  </td>
						
						<td style="text-align: right;">Email：</td>
						
						<td><s:property value="merinfoDetail.email"/></td>
						<td style="text-align: right;">业务联系人：</td>
						
						<td><s:property value="merinfoDetail.interContact"/> </td>
					</tr>
					
					<tr>
						<td style="text-align: right;">备注：</td>
						<td colspan="5"><s:property value="merinfoDetail.meMo"/></td>

					</tr>
					<tr>
						<th colspan="6">附件信息</th>
					</tr>
					<tr>
						<td style="text-align: right;">法人证件：</td>
						
						<td   > <s:if test="merinfoDetail.cardUrl !=null && merinfoDetail.cardUrl != ''">
        					<input id="fileIput" type="button" onclick="checkImgs('<s:property value='merinfoDetail.cardUrl'/>')" value="预览"/>
        					</s:if><s:else><input disabled="disabled"  type="button" value="预览"/></s:else>
						 </td>
						<td style="text-align: right;" >开户行许可证：</td>
						
						<td  ><s:if test="merinfoDetail.bankLicenseUrl !=null && merinfoDetail.bankLicenseUrl != ''">
						<input id="fileIput" type="button" onclick="checkImgs('<s:property value='merinfoDetail.bankLicenseUrl'/>')" value="预览"/>
						</s:if><s:else><input disabled="disabled"  type="button" value="预览"/></s:else>
						</td>
						<td style="text-align: right;">营业执照：</td>
						
						<td colspan="3" >
							<s:if test="merinfoDetail.businessLUrl !=null && merinfoDetail.businessLUrl != ''">
						<input id="fileIput" onclick="checkImgs('<s:property value='merinfoDetail.businessLUrl'/>')"  type="button" value="预览"/>
						</s:if><s:else><input disabled="disabled"  type="button" value="预览"/></s:else>
						</td>
					</tr>
					 
					<tr>
						<td style="text-align: right;">组织机构代码：</td>
						
						<td >
							<s:if test="merinfoDetail.organizationCodeUrl !=null && merinfoDetail.organizationCodeUrl != ''">
						<input id="fileIput" onclick="checkImgs('<s:property value='merinfoDetail.organizationCodeUrl'/>')"  type="button" value="预览"/>
						</s:if><s:else><input disabled="disabled"  type="button" value="预览"/></s:else>
						</td>
						<td style="text-align: right;">税务登记证：</td>
						
						<td >
							<s:if test="merinfoDetail.taxRegCerUrl !=null && merinfoDetail.taxRegCerUrl != ''">
						<input id="fileIput" onclick="checkImgs('<s:property value='merinfoDetail.taxRegCerUrl'/>')"  type="button" value="预览"/>
						</s:if><s:else><input disabled="disabled"  type="button" value="预览"/></s:else>
						</td>
						<td style="text-align: right;">营业场地图片：</td>
						
						<td  >
						<s:if test="merinfoDetail.placeOfBusUrl !=null &&merinfoDetail.placeOfBusUrl != ''">
						<input id="fileIput" onclick="checkImgs('<s:property value='merinfoDetail.placeOfBusUrl'/>')"  type="button" value="预览"/>
						</s:if><s:else><input disabled="disabled"  type="button" value="预览"/></s:else>
						</td>
					</tr>
					
					<tr>
						<td style="text-align: right;">租赁合同：</td>
						
						<td  >
							<s:if test="merinfoDetail.picUrl1 !=null && merinfoDetail.picUrl1 != ''">
						<input id="fileIput" onclick="checkImgs('<s:property value='merinfoDetail.picUrl1'/>')"  type="button" value="预览"/>
						</s:if><s:else><input disabled="disabled"  type="button" value="预览"/></s:else>
						</td>
						<td style="text-align: right;">商户信息调查表：</td>
						
						<td >
						<s:if test="merinfoDetail.picUrl2 !=null && merinfoDetail.picUrl2 != ''">
						<input id="fileIput" onclick="checkImgs('<s:property value='merinfoDetail.picUrl2'/>')"  type="button" value="预览"/>
						</s:if><s:else><input disabled="disabled"  type="button" value="预览"/></s:else>
						</td>
						<td style="text-align: right;">门头照：</td>
						
						<td  >
							<s:if test="merinfoDetail.picUrl3 !=null && merinfoDetail.picUrl3 != ''">
						 <input id="fileIput" onclick="checkImgs('<s:property value='merinfoDetail.picUrl3'/>')"  type="button" value="预览"/>
						 </s:if><s:else><input disabled="disabled"  type="button" value="预览"/></s:else>
						</td>
					</tr>
					
					
					<tr>
						<td style="text-align: right;">收银台照片：</td>
						
						<td >
							<s:if test="merinfoDetail.picUrl4 !=null && merinfoDetail.picUrl4 != ''">
						<input id="fileIput" type="button" onclick="checkImgs('<s:property value='merinfoDetail.picUrl4'/>')"  value="预览"/>
						 </s:if><s:else><input disabled="disabled"  type="button" value="预览"/></s:else>
						</td>
						<td style="text-align: right;">合作协议1：</td>
						
						<td  >
							<s:if test="merinfoDetail.picUrl5 !=null && merinfoDetail.picUrl5 != ''">
						<input id="fileIput" onclick="checkImgs('<s:property value='merinfoDetail.picUrl5'/>')"  type="button" value="预览"/>
						 </s:if><s:else><input disabled="disabled"  type="button" value="预览"/></s:else>
						</td>
						<td style="text-align: right;">合作协议2：</td>
						
						<td  >
							<s:if test="merinfoDetail.picUrl6 !=null && merinfoDetail.picUrl6 != ''">
						<input id="fileIput" onclick="checkImgs('<s:property value='merinfoDetail.picUrl6'/>')"  type="button" value="预览"/>
						</s:if><s:else><input disabled="disabled"  type="button" value="预览"/></s:else>
						</td>
					</tr>
					
					<tr>
						<td style="text-align: right;">手持身份证照：</td>
						
						<td  >
						<s:if test="merinfoDetail.picUrl7 !=null && merinfoDetail.picUrl7 != ''">
						<input id="fileIput" onclick="checkImgs('<s:property value='merinfoDetail.picUrl7'/>')"  type="button" value="预览"/>
						</s:if><s:else><input disabled="disabled"  type="button" value="预览"/></s:else>
						</td>
						<td style="text-align: right;">银行卡正反面照：</td>
						
						<td  >
						<s:if test="merinfoDetail.picUrl8 !=null && merinfoDetail.picUrl8 != ''">
						<input id="fileIput" onclick="checkImgs('<s:property value='merinfoDetail.picUrl8'/>')"  type="button" value="预览"/>
						</s:if><s:else><input disabled="disabled"  type="button" value="预览"/></s:else>
						</td>
						<td style="text-align: right;">备用1：</td>
						
						<td  >
						<s:if test="merinfoDetail.picUrl9 !=null && merinfoDetail.picUrl9 != ''">
						<input id="fileIput" onclick="checkImgs('<s:property value='merinfoDetail.picUrl9'/>')"  type="button" value="预览"/>
						</s:if><s:else><input disabled="disabled"  type="button" value="预览"/></s:else>
						</td>
					</tr>
					<tr>
						
						<td style="text-align: right;">备用2：</td>
						
						<td  >
						<s:if test="merinfoDetail.picUrl10 !=null && merinfoDetail.picUr110 != ''">
						<input id="fileIput" onclick="checkImgs('<s:property value='merinfoDetail.picUrl10'/>')"  type="button" value="预览"/>
						</s:if><s:else><input disabled="disabled"  type="button" value="预览"/></s:else>
						</td>
					</tr>
					
					<tr>
						<th colspan="6">申请终端列表</th>
					</tr>
					<tr>
						<td colspan="6">
							<table width="100%">
								<tr>
									<td style="text-align: center;"><b>终端号</b></td>
									<td style="text-align: center;"><b>门店名称</b></td>
									<td style="text-align: center;"><b>终端类型</b></td>
									<td style="text-align: center;"><b>终端序列号</b></td>
									<td style="text-align: center;"><b>终端安装地址</b></td>
									<td style="text-align: center;"><b>备注</b></td>
								</tr>
								<s:iterator value="#request.terList" var="ter">
									<tr>
									<td><s:property value="#ter.tid"/> </td>
									<td><s:property value="#ter.termName"/> </td>
									<td>
										<s:if test="#ter.tidKind==\"01\"">移动</s:if>
										<s:if test="#ter.tidKind==\"02\"">固定</s:if>
									</td>
									<td><s:property value="#ter.serialNum"/></td>
									<td><s:property value="#ter.termAddress"/></td>
									<td><s:property value="#ter.note"/></td>
								</tr>
								</s:iterator>
							</table>
						</td>
					</tr>
					<tr>
						<th colspan="6">开通功能</th>
					</tr>
					<tr>
						<td colspan="6">
								
							<s:checkboxlist name="transTypes" list="#request.tranTypeList" listKey="key" listValue="value" disabled="true"></s:checkboxlist>
							
						</td>
					</tr>
					<tr>
						<th colspan="6">商户终端交易额度信息</th>
					</tr>
					<tr>
						<td>贷记卡单笔额度：</td>
						
						<td><s:property value="merinfoDetail.amount1"/>  </td>
						<td>商户单日累计额度（贷记卡）：</td>
						
						<td><s:property value="merinfoDetail.dayAmount1"/> </td>
						<td>商户每月累计额度（贷记卡）：</td>
						
						<td><s:property value="merinfoDetail.mouthAmount1"/>  </td>
					</tr>
					<tr>
						<td>借记卡单笔额度 ：</td>
						
						<td><s:property value="merinfoDetail.amount2"/> </td>
						<td>商户单日累计额度（借记卡）：</td>
						
						<td><s:property value="merinfoDetail.dayAmount2"/> </td>
						<td>商户每月累计额度（借记卡）：</td>
						
						<td><s:property value="merinfoDetail.mouthAmount2"/> </td>
					</tr>
					<s:if test="#request.audtingList!=null">
					<tr>
						<th colspan="6">审核信息</th>
					</tr>
					
					<tr>
						<td colspan="6">
						<table width="100%">
							<tr>
								<td width="8%">操作类别</td>
								<td>审核意见</td>
								<td width="10%">审核人员</td>
								<td width="10%">审核时间</td>
							</tr>
							<s:if test="#request.audtingList!=null">
								<s:iterator value="#request.audtingList" var="au">
									<tr>
										
										<td>
											<s:property value="#au.audit_name"/>
										</td>
										
										<td >
											<s:property value="#au.result_detail"/>
										</td>
										<td><s:property value="#au.operators"/></td>
										<td>
											<s:date name="#au.dtCreate"/>
										</td>
									</tr>
								</s:iterator>
							</s:if>
							<s:else>无意见</s:else>
						</table>
					</td>
					</tr><!-- 
					
							<s:iterator value="#request.audtingList" var="au" status="stat">
								<tr>
									<td>
										<s:if test="#stat.index==0">初审意见：</s:if>
										<s:if test="#stat.index==1">复审意见：</s:if>
									 </td>
									
									<td colspan="5">
										<s:property value="#au.result_detail"/>
									</td>
																
								</tr>
							</s:iterator>-->
					</s:if> 
					
					<tr>
						<td align="center" colspan="6">
						<input type="button" onclick="goBack()" value="返    回"/></td>
					</tr>
					
				</table>

			</s:form>
		</div>
	
</body>
</html>
